package com.fish.service.impl.order;

import java.util.List;

import com.fish.common.constant.QueryPage;
import com.fish.order.dao.OrderDAO;
import com.fish.order.po.Order;
import com.fish.service.order.OrderService;

public class OrderServiceImpl implements OrderService {
	private OrderDAO orderDAO;
	
	public void setOrderDAO(OrderDAO orderDAO) {
		this.orderDAO = orderDAO;
	}

	@Override
	public Order queryOrderByPrimaryKey(Long orderId) {
		return orderDAO.queryOrderByPrimaryKey(orderId);
	}

	@Override
	public void addOrder(Order order) {
		orderDAO.addOrder(order);
	}

	@Override
	public void updateOrder(Order order) {
		orderDAO.updateOrder(order);
	}

	@Override
	public List<Order> queryOrderByObject(Order order) {
		return orderDAO.queryOrderByObject(order);
	}

	@Override
	public Long queryOrderCountByObject(Order order) {
		return this.orderDAO.queryOrderCountByObject(order);
	}

	@Override
	public List<Order> queryOrderByObject(Order order, QueryPage queryPage) {
		return this.orderDAO.queryOrderObject(order,queryPage);
	}

}
